import 'package:safetymonitor/app/components/custom_app_bar.dart';
import 'package:safetymonitor/app/core/core.dart';

/// 无权限时页面显示
class NoPermissionsWidget extends StatelessWidget {
  const NoPermissionsWidget(  {super.key,this.boolTOP=true});
  final bool boolTOP;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
       appBar:  boolTOP? CustomAppBar(
          titleText: '暂无权限',
        ):null,
        body: Container(
          color: const Color(0xffF5F5F6),
          alignment: Alignment.center,
          child: Text(
            '-- 请通知管理员分配菜单权限 --',
            style: TextStyle(
              fontSize: 14.w,
              height: 1.2,
              color: const Color(0xff4D5956),
              fontWeight: FontWeight.w400,
            ),
          ),
        ));
  }
}
